package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.List;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 商品分销信息对象 sh_market
 * 
 * @author ruoyi
 * @date 2023-07-18
 */
@Data
public class ShMarket extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    private Long productId;

    private Long shopId;

    @Excel(name = "商铺名称")
    private String shopName;

    @Excel(name = "商品名称")
    private String productName;

    @Excel(name = "销售总额")
    private BigDecimal amount;

    @Excel(name = "分销折扣")
    private BigDecimal account;

    @Excel(name = "分销提成总额")
    private BigDecimal marketAmount;

    @Excel(name = "分销人")
    private String createByName;

    @Excel(name = "联系电话")
    private String phone;

    @Excel(name = "分销时间")
    private String createTimeStr;

    private String appId;

    private String order;
    private String orderType;

    private List<Long> productIds;
    private String minAmount;
    private String maxAmount;
    private String minMarketAmount;
    private String maxMarketAmount;

    private String createAtstart;
    private String createAtend;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("productId", getProductId())
            .append("amount", getAmount())
            .append("account", getAccount())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .toString();
    }
}
